// SaveProjectCommand.cpp: implementation of the SaveProjectCommand class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "SaveProjectCommand.h"

#include "Application.h"
#include "Project.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
using namespace PDMS::PDMSFrame;

namespace PDMS
{
	namespace COMMAND
	{
		
		SaveProjectCommand::SaveProjectCommand()
		{
			
		}
		
		SaveProjectCommand::~SaveProjectCommand()
		{
			
		}
		BOOL SaveProjectCommand::Execute()
		{
			UESoft::ErrorStatus es = Application::Instance()
				->ActiveProject()->Save();
			if( es != UESoft::eOk )
			{
				return FALSE;
			}			
			
		   return TRUE;
			
			
		}
	}
}